package com.example.pmxt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.time.LocalDateTime;

@Data
@TableName("sys_carousel")
public class Carousel {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    private String name;
    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    private String introduction;
//    @NotBlank(message = "不能为空")
//    @NotNull(message = "不能为空")
    private String cover;
    private LocalDateTime created;
//    @NotBlank(message = "不能为空")
    private Integer deleteflag;
    private String remark;

}
